package com.aracky.system.controller;

import com.aracky.common.vo.CommonResult;
import com.aracky.system.service.WxSyncService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zengzhiping
 * @BelongsPackage com.aracky.system.controller
 * @CreateTime 2022-07-15
 * @Description
 */
@RestController
@RequestMapping("/wx")
@Api(tags = "企业微信相关接口接口")
public class WxController {

    @Autowired
    private WxSyncService wxSyncService;

    @GetMapping("/syncWxData")
    @ApiOperation(value = "同步微信部门-用户-岗位数据")
    public CommonResult syncWxDeptUser() {
        wxSyncService.syncWxData();
        return CommonResult.success("同步成功");
    }


}
